package com.cloud.distribute.lock;

import com.cloud.distribute.lock.generator.CacheKeyGenerator;
import com.cloud.distribute.lock.generator.LockGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @author zhaoyangfu - 2020/7/22 17:06
 */
@SpringBootApplication
public class DistributeLockApplication {

    public static void main(String[] args) {
        SpringApplication.run(DistributeLockApplication.class, args);
    }

    @Bean
    public CacheKeyGenerator cacheKeyGenerator() {
        return new LockGenerator();
    }
}
